package com.amsp.oa.oademo.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.amsp.oa.oademo.entity.AttendanceSummary;
import com.amsp.oa.oademo.mapper.AttendanceSummaryMapper;
import com.amsp.oa.oademo.service.AttendanceSummaryService;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class AttendanceSummaryServiceImpl extends ServiceImpl<AttendanceSummaryMapper, AttendanceSummary>
        implements AttendanceSummaryService {

    @Override
    public IPage<AttendanceSummary> getPage(Integer current, Integer size) {
        Page<AttendanceSummary> page = new Page<>(current, size);
        return this.page(page);
    }

    @Override
    public void saveOrUpdateBatch(List<AttendanceSummary> records) {
        this.saveOrUpdateBatch(records, 100);
    }
}